package com.riekoff.particlecubeworld.player;

import cc.creativecomputing.graphics.CCColor;
import cc.creativecomputing.graphics.texture.CCTexture2D;
import cc.creativecomputing.graphics.texture.CCTextureData;
import cc.creativecomputing.graphics.texture.CCTexture.CCTextureTarget;
import cc.creativecomputing.math.CCMath;

public class AUtil {
	
	public static CCTexture2D randomTexture (int w, int h) {
		CCTextureData myRandom = new CCTextureData(200,200);
		for(int x = 0; x < myRandom.width(); x++ ){
			for(int y = 0; y < myRandom.height(); y++ ){
				myRandom.setPixel(x, y, new CCColor(CCMath.random(),CCMath.random(),CCMath.random()));
			}
		}
		return new CCTexture2D(myRandom, CCTextureTarget.TEXTURE_RECT);
	}
}
